<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../../../css/app.css">
    <link rel="stylesheet" type="text/css" href="../../../css/tabBar.css">
    <link rel="stylesheet" type="text/css" href="../comm/swiper.min.css">
    <!-- <link rel="stylesheet" type="text/css" href="../comm/mobiscroll.custom.min.css"> -->
    <link rel="stylesheet" type="text/css" href="./css/shop_activity.css">

    <link rel="stylesheet" href="../comm/mui.min.css">
    <link rel="stylesheet" type="text/css" href="../comm/mui.picker.min.css">
    <title>添加店铺活动</title>
</head>

<body>
	<div class="header navigationBar">
      	<div class="wrapper">
          	<span id="btn-back" class="header-btn left-btn backtrack"></span>
          	<span class="title">添加店铺活动</span>
      	</div>
  	</div>
  	<div class="container top-container">
  		<ul class="shop-activity-add">
  			<li>
  				<span>活动名称</span><input type="text" name="" ref="active_name" maxlength='10' value="" placeholder="请输入活动名称"/>
  			</li>
  		</ul>
  		<ul class="shop-activity-add">
  			<li>
  				<span>开始时间</span>
          <!-- <input type="text" name="" id="start_datetime" @click="DateFun" ref="start_time" value="" placeholder="请选择开始时间"/> -->
          <button id="startTime" class="btn mui-btn mui-btn-block" @click="startTime()">选择日期时间 ...</button>
          <!-- <div id="result" class="ui-alert"></div> -->
  			</li>
  			<li>
  				<span>结束时间</span>
          <!-- <input type="text" name="" id="end_datetime" @click="DateFun" ref="end_time" value="" placeholder="请选择结束时间"/> -->
          <button id="endTime" class="btn mui-btn mui-btn-block" @click="endTime()">选择日期时间 ...</button>
          <!-- <div id="result" class="ui-alert"></div> -->
  			</li>
  		</ul>
  		<div class="shop-activity-money">
  			<ul v-for="(item, index) in templateList">
	  			<li>
	  				<div>
		  				<span>消费满</span><input type="number" name="" v-model="min_goods_amount[index]" value="" placeholder="请填写金额"/>
	  				</div>
	  				<div>
		  				<span>减</span><input type="number" name="" v-model="amount[index]" value="" placeholder="请填写金额"/>
	  				</div>
	  				<a href="javascript:void(0);" @click="delTemplateList(index)"><img src="../../../image/shop/buy/buy-29.png"/></a>
	  			</li>
  			</ul>
  			<a href="javascript:void(0);" @click="addTemplateList">添加下一级</a>
  		</div>
  		<a href="javascript:void(0);" class="shop-activity-add-btn" @click="saveActivity">完成</a>
  	</div>
</body>
<script src="../../sea.js" data-main="../../main"></script>
<script type="text/javascript" src="../../vue.js"></script>
<script src="../../mui.js"></script>
<script src="../../mui.picker.min.js"></script>
<script type="text/javascript" src="./js/shopActivityAdd.js"></script>
</html>
